package com.youkeyi.ddy.cloud.common.api.application.system.todo;

import com.youkeyi.ddy.cloud.common.api.application.system.todo.dto.SystemTodoListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.todo.param.SystemTodoCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.todo.param.SystemTodoDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.todo.param.SystemTodoListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.todo.param.SystemTodoUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemTodoCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/todo/fallback")
public class SystemTodoCloudServiceFallback implements SystemTodoCloudService {

    @Override
    public SystemTodoListCloudDto todoList(SystemTodoListCloudParam param) {
        return new SystemTodoListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemTodoListCloudDto doneList(SystemTodoListCloudParam param) {
        return new SystemTodoListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent finish(SystemTodoUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemTodoCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemTodoDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
